PARSER=parser
DEB=debug
cc=g++
HTTP_SERVER=http_server 
DATA=ingestion/output/stored_data

.PHONY:all
all:$(PARSER) $(DEB) $(HTTP_SERVER)

$(PARSER):parser.cc
	$(cc) -o $@ $^ -lboost_system -lboost_filesystem -std=c++11

$(DEB):debug.cc
	$(cc) -o $@ $^ -ljsoncpp -std=c++11 

$(HTTP_SERVER):http_server.cc
	$(cc) -o $@ $^ -ljsoncpp -lpthread -std=c++11

.PHONY:clean
clean:
	rm -rf $(PARSER) $(DEB) $(HTTP_SERVER) $(DATA)